package com.ruoyi.project.search.viewDdjFaultStatistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.search.viewDdjFaultStatistics.mapper.ViewDdjFaultStatisticsMapper;
import com.ruoyi.project.search.viewDdjFaultStatistics.domain.ViewDdjFaultStatistics;
import com.ruoyi.project.search.viewDdjFaultStatistics.service.IViewDdjFaultStatisticsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 堆垛机问题统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
@Service
public class ViewDdjFaultStatisticsServiceImpl implements IViewDdjFaultStatisticsService 
{
    @Autowired
    private ViewDdjFaultStatisticsMapper viewDdjFaultStatisticsMapper;

    /**
     * 查询堆垛机问题统计
     * 
     * @param warehouseId 堆垛机问题统计主键
     * @return 堆垛机问题统计
     */
    @Override
    public ViewDdjFaultStatistics selectViewDdjFaultStatisticsByWarehouseId(String warehouseId)
    {
        return viewDdjFaultStatisticsMapper.selectViewDdjFaultStatisticsByWarehouseId(warehouseId);
    }

    /**
     * 查询堆垛机问题统计列表
     * 
     * @param viewDdjFaultStatistics 堆垛机问题统计
     * @return 堆垛机问题统计
     */
    @Override
    public List<ViewDdjFaultStatistics> selectViewDdjFaultStatisticsList(ViewDdjFaultStatistics viewDdjFaultStatistics)
    {
        return viewDdjFaultStatisticsMapper.selectViewDdjFaultStatisticsList(viewDdjFaultStatistics);
    }

    /**
     * 新增堆垛机问题统计
     * 
     * @param viewDdjFaultStatistics 堆垛机问题统计
     * @return 结果
     */
    @Override
    public int insertViewDdjFaultStatistics(ViewDdjFaultStatistics viewDdjFaultStatistics)
    {
        return viewDdjFaultStatisticsMapper.insertViewDdjFaultStatistics(viewDdjFaultStatistics);
    }

    /**
     * 修改堆垛机问题统计
     * 
     * @param viewDdjFaultStatistics 堆垛机问题统计
     * @return 结果
     */
    @Override
    public int updateViewDdjFaultStatistics(ViewDdjFaultStatistics viewDdjFaultStatistics)
    {
        return viewDdjFaultStatisticsMapper.updateViewDdjFaultStatistics(viewDdjFaultStatistics);
    }

    /**
     * 批量删除堆垛机问题统计
     * 
     * @param warehouseIds 需要删除的堆垛机问题统计主键
     * @return 结果
     */
    @Override
    public int deleteViewDdjFaultStatisticsByWarehouseIds(String warehouseIds)
    {
        return viewDdjFaultStatisticsMapper.deleteViewDdjFaultStatisticsByWarehouseIds(Convert.toStrArray(warehouseIds));
    }

    /**
     * 删除堆垛机问题统计信息
     * 
     * @param warehouseId 堆垛机问题统计主键
     * @return 结果
     */
    @Override
    public int deleteViewDdjFaultStatisticsByWarehouseId(String warehouseId)
    {
        return viewDdjFaultStatisticsMapper.deleteViewDdjFaultStatisticsByWarehouseId(warehouseId);
    }
}
